import { createRouter, createWebHashHistory } from "vue-router";
import HomeView from "../views/admin/AdminHomeView.vue";
import AdminWordView from "@/views/admin/AdminWordView.vue";
import AdminBookView from "@/views/admin/AdminBookView.vue";
import AdminUserAndPermissionView from "@/views/admin/AdminUserAndPermissionView.vue";

const routes = [
  {
    path: "/",
    name: "home",
    component: HomeView,
  },
  {
    path: "/admin/word",
    name: "admin-word",
    component: AdminWordView,
  },
  {
    path: "/admin/book",
    name: "admin-book",
    component: AdminBookView,
  },
  {
    path: "/admin/user-and-permission",
    name: "admin-user-and-permission",
    component: AdminUserAndPermissionView,
  },
];

const router = createRouter({
  history: createWebHashHistory(),
  routes,
});

export default router;
